package org.scct.chenhui.utils;

import java.awt.*;
import java.text.SimpleDateFormat;
import java.util.Date;


public class Utils {


    public static Dimension  getScreenSize()
    {
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        return screenSize;
    }

    public  static String getTimeStr(long time)
    {
        Date date = new Date(time);
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sdf.format(date);
    }

}
